{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import os\n",
    "import cv2"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "路径: /root/MyCode/infrared-image-damage-detection-model/dataset/FLIR-align-3class/infrared/test/FLIR_08864_PreviewData.jpeg\n",
      "ndim : 2\n",
      "shape: (512, 640)\n",
      "dtype: uint8\n"
     ]
    }
   ],
   "source": [
    "\n",
    "\n",
    "# 随便挑一张红外图\n",
    "ir_path = \"/root/MyCode/infrared-image-damage-detection-model/dataset/FLIR-align-3class/infrared/test/FLIR_08864_PreviewData.jpeg\"  # 换成你真实路径\n",
    "img = cv2.imread(ir_path, cv2.IMREAD_UNCHANGED)   # 按原样读\n",
    "print(\"路径:\", ir_path)\n",
    "print(\"ndim :\", img.ndim)\n",
    "print(\"shape:\", img.shape)\n",
    "print(\"dtype:\", img.dtype)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "work2025317",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.21"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
